package com.bwie.common.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName:
 * @Description:
 * @Author: zengfanzhen
 * @Date: 2024/4/11 20:06:22
 */
@Entity
@Table(name = "data2")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Data2 implements Serializable {
    @Id
    @NotNull(message = "编号不能为空")
    @ApiModelProperty(value = "编号 对应id")
    private String id;

    @NotNull(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名 XM")
    private String XM;

    @NotNull(message = "证件号不能为空")
    @ApiModelProperty(value = "证件号 Card")
    private String Card;

    @ApiModelProperty(value = "证件照片 Photo1")
    @Lob
    private byte[] Photo1;

    @ApiModelProperty(value = "采集照片 Photo2")
    @Lob
    private byte[] Photo2;

}
